package com.gzbsoft.sc.modules.sys.entity;
import io.ebean.annotation.DbComment;
import io.ebean.annotation.DocStore;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Table;
@DocStore
@Entity
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@Table(name = "jx_user")
@Data
@DbComment("用户基本表")
public class JxUser extends BaseEntity {
    @DbComment("用户名/登陆名")
    private String username;
    @DbComment("手机号")
    private String tel;
    @DbComment("密码")
    private String password;
    @DbComment("头像")
    private String headImg;
    @DbComment("邮箱")
    private String email;
    @DbComment("积分")
    private String score;
    @DbComment("用户类型: 1: 个人用户, 2: 商家, 3: 商家子账号")
    private String userType;
    @Override
    public String toString() {
        return "JxUser{" +
                "username='" + username + '\'' +
                ", tel='" + tel + '\'' +
                ", password='" + password + '\'' +
                ", headImg='" + headImg + '\'' +
                ", email='" + email + '\'' +
                ", score='" + score + '\'' +
                ", userType='" + userType + '\'' +
                ", id=" + id +
                '}';
    }
}
